<?php

include_once './Data/UserData.inc';

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of UserFunc
 *
 * @author jin
 */
class GameUser {
    
    private $iduser;
    private $pseudo;
    private $passuser;
    
    //Constructor
    public function __construct(){   
        $num_args=func_num_args();
	   switch ($num_args) {
	      case 3:{
		      	$this->iduser=func_get_arg(0);
			$this->pseudo=func_get_arg(1);
			$this->passuser=func_get_arg(2);
	      };break;
	   }
    }
    
    //Encapsulation
    public function getId() {
        return $this->iduser;
    }    
    public function getPseudo() {
        return $this->pseudo;
    }
    public function getPassword() {
        return $this->passuser;
    }
    public function setId($aId){
        $this->iduser = $aId;
    }
    public function setPseudo($aPseudo){
        $this->pseudo = $aPseudo;
    }
    public function setPass($aPassuser){
        $this->passuser = $aPassuser;
    }
    
    //functions   
    public function createPartie($aPass){
        
    }
    
    public function cancelPartie(Partie $aPartie){
        
    }
    
    public function joinPartie(Partie $aPartie){
        
    }
    
    //destructor
    public function __destruct() {
        
    }
}

?>
